use `runner.os`
authorKevin Albertson <kevin.albertson@10gen.com>
Tue, 20 May 2025 00:03:39 +0000 (20:03 -0400)
committerGitHub <noreply@github.com>
Tue, 20 May 2025 00:03:39 +0000 (20:03 -0400)
To allows future Windows additions to the test matrix.

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
.github/workflows/cmake.yml

index 7139f6eca4cc1677deeaa92888bd6c77401f0552..db6262e84bc29862c941942d045e91d3851b0435 100644 (file)
@@ -34,7 +34,7 @@ jobs:
           build/libutf8proc.*
           build/Debug/utf8proc.*
     - name: Test Consuming (Windows)
-      if: ${{ matrix.os == 'windows-latest' }}
+      if: runner.os = 'Windows'
       run: |
         cmake --install build --prefix tmp/install --config Debug
         cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install
@@ -42,7 +42,7 @@ jobs:
         $Env:PATH = "$PWD\tmp\install\bin;$Env:PATH"
         test/app/build/Debug/app.exe
     - name: Test Consuming (Unix)
-      if: ${{ matrix.os != 'windows-latest' }}
+      if: runner.os != 'Windows'
       run: |
         cmake --install build --prefix tmp/install
         cmake -S test/app -B test/app/build -DCMAKE_INSTALL_PREFIX=tmp/install